projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22be00f
)
(init_sys_modes): Make gpm_fd nonblocking
author
Nick Roberts
<nickrob@snap.net.nz>
Sun, 20 May 2007 02:32:29 +0000
(
02:32
+0000)
committer
Nick Roberts
<nickrob@snap.net.nz>
Sun, 20 May 2007 02:32:29 +0000
(
02:32
+0000)
and allow it to be interrupted by SIGIO.
src/sysdep.c
patch
|
blob
|
history
diff --git
a/src/sysdep.c
b/src/sysdep.c
index 27e90349cb6e052cdedc93fe0eaba29dd12644e0..5dd7769ba4ded310e4de79250890ad9eeb70076f 100644
(file)
--- a/
src/sysdep.c
+++ b/
src/sysdep.c
@@
-1675,6
+1675,14
@@
init_sys_modes ()
old_fcntl_owner = fcntl (input_fd, F_GETOWN, 0);
fcntl (input_fd, F_SETOWN, getpid ());
init_sigio (input_fd);
+#ifdef HAVE_GPM_H
+ if (term_gpm)
+ {
+ fcntl (gpm_fd, F_SETOWN, getpid ());
+ fcntl (gpm_fd, F_SETFL, O_NONBLOCK);
+ init_sigio (gpm_fd);
+ }
+#endif /* HAVE_GPM_H */
}
#endif /* F_GETOWN */
#endif /* F_SETOWN_BUG */